﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Report_UpLoad.ascx.cs" Inherits="EcSalseManage.PageCommon.Report_UpLoad" %>
    <script type="text/javascript">
        function DataCheck() {
            if (document.all("txtFilePath").value.length == 0) {
                alert("请选择文件！");
                document.all['txtFilePath'].focus();
                return false;
            }
            return true;
        }
    </script>
    <table>
                               <tr>
                                    <td>
                                        附件类型：
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlFileType" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" style="font-size:15px;">
                                        上传文件:
                                    </td>
                                    <td align="left">
                                        <font face="宋体">
                                            <input id="txtFilePath" runat="server" name="UploadFile" style="font-size: 9pt; width: 388px"  type="file" />
                                        </font>
                                    </td>
                                </tr>
                                 <tr>
                                    <td align="left" style="font-size:15px;">
                                        其他资料:
                                    </td>
                                    <td align="left">
                                        <font face="宋体">
                                            <asp:TextBox ID="txtProjectDesc" runat="server" Width="384px"></asp:TextBox></font>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                     <asp:LinkButton ID="lbtnUpLoad"  runat="server" style=" background-image:url(..../images/pic15.gif); background-repeat:no-repeat; padding-left:17px;" onclick="lbtnUpLoad_Click">上传</asp:LinkButton>
                                   
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                    
                                <tr>
                                    <td colspan="2">
                                        <asp:DataGrid ID="dgList" runat="server" AutoGenerateColumns="False" BackColor="#C0FFC0"
                                            BorderStyle="Dotted" BorderWidth="0px" CellPadding="1" CellSpacing="1" DataKeyField="Project_Report_ID"
                                            PageSize="20" Width="600px" onitemcommand="dgList_ItemCommand" 
                                            onitemdatabound="dgList_ItemDataBound">
                                            <PagerStyle Mode="NumericPages" Position="TopAndBottom" />
                                            <AlternatingItemStyle BackColor="#F0F0E8" CssClass="td" />
                                            <ItemStyle BackColor="#F8F4E4" CssClass="td" />
                                            <HeaderStyle BackColor="#D8C8A8" CssClass="ttTable" HorizontalAlign="Center" />
                                            <Columns>
                                                <asp:HyperLinkColumn DataNavigateUrlField="Project_Report_FilePath" DataTextField="Project_Report_FileDesc"
                                                    HeaderText="上传资料名称" Target="_blank"></asp:HyperLinkColumn>
                                                <asp:TemplateColumn HeaderText="删除">
                                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" Wrap="False" />
                                                    <ItemTemplate>
                                                        <asp:ImageButton ID="imgbtnDelete" runat="server" AlternateText="删除" BorderStyle="Dotted"
                                                            BorderWidth="0px" CommandName="Delete" ImageAlign="Middle" ImageUrl="..../images/delete.gif" />
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="40px" />
                                                </asp:TemplateColumn>
                                            </Columns>
                                        </asp:DataGrid>
                                    </td>
                                </tr>
                            </table>